/* 🌈 多彩主题 - Colorful Theme */

/* 全局变量 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --error-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --text-color: #333;
    --text-light: #666;
    --background: #fff;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 多彩卡片样式 */
.spider-card {
    background: var(--background);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
}

.spider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.spider-card-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    border-bottom: none;
}

.spider-card-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.spider-card-body {
    padding: 25px;
}

/* 多彩统计卡片 */
.stats-card {
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card:nth-child(1) {
    background: var(--primary-gradient);
}

.stats-card:nth-child(2) {
    background: var(--secondary-gradient);
}

.stats-card:nth-child(3) {
    background: var(--success-gradient);
}

.stats-card:nth-child(4) {
    background: var(--warning-gradient);
}

.stats-card:nth-child(5) {
    background: var(--error-gradient);
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .stats-number {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.stats-card .stats-label {
    font-size: 1.1em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.stats-card:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

/* 多彩按钮 */
.btn-colorful {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-colorful:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-colorful::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-colorful:hover::before {
    left: 100%;
}

/* 多彩表格 */
.spider-table {
    background: var(--background);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 25px;
}

.spider-table th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    padding: 15px;
    text-align: left;
}

.spider-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
}

.spider-table tr:hover {
    background: #f8f9ff;
}

.spider-table tr:last-child td {
    border-bottom: none;
}

/* 多彩图表 */
.chart-container {
    background: var(--background);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* 多彩网格 */
.spider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spider-card,
.stats-card {
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    .spider-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-card {
        padding: 25px;
    }
    
    .stats-card .stats-number {
        font-size: 2em;
    }
}